package com.evol.util;

import com.alibaba.fastjson.JSONObject;

import java.math.BigDecimal;
import java.util.Calendar;
import java.util.Date;
import java.util.Random;

/**
 * 通用工具类
 * @author EvOL
 * @description
 * @date 2023-11-22 10:33
 **/
public class EvolTool {
    public static final String USERLIST="config/userlist.json";
    public static JSONObject removeSpacesInKeys(JSONObject jsonObject) {
        JSONObject cleanedJsonObject = new JSONObject();

        for (String key : jsonObject.keySet()) {
            String newKey = key.replaceAll("\\s", "");
            cleanedJsonObject.put(newKey, jsonObject.get(key));
        }

        return cleanedJsonObject;
    }



}
